<template>
  <div>
    <h1 style="text-align:center;">欢迎来到活动管理后台页面</h1>
    <div class="img">
      <img src="@/assets/login/logo.png" alt="活动管理页面" />
    </div>
  </div>
</template>

<script>
export default {
     created(){
        this.pageRef()
    },
     methods: {
        pageRef(){
        let q= localStorage.getItem("refadmin")
            if(q=="1"){
                window.location.href="/admin/index"
                localStorage.setItem("refadmin","3");
            }else if(q=="0"){
                window.location.href="/admin/index"
                localStorage.setItem("refadmin","3");
            }
        }
  
  }
}
</script>

<style>

.img{
    width: 50%;
    height: 40%;
    margin: 0 auto;
    }

.img {
  width: 50%;
  height: 40%;
  margin: 0 auto;
}
</style>
